<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // Object.is()判断两个参数是否相同

        // const aa = {
        //     name:'王德发',
        //     age:18,
        //     sex:'男'
        // }

        // const bb = {
        //     name:'李华',
        //     jiguan:'世界',
        //     wenpin:'幼儿园'
        // }

        // // const fo = Object.assign(aa,bb)
        // const foo = Object.assign({},bb,aa)
        // // console.log(fo);
        // console.log(foo);

        function clone(origin) {
            return Object.assign({name:'王德发 '},origin)
        }
        console.log(clone());
    </script>
</body>
</html>